package com.tianye.salon.model;

import java.io.Serializable;
import java.util.List;

public class AdminRole implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String name;
	private String description;
	private List<AdminModule> modules;
	
	public AdminRole(){}
	
	public AdminRole(int id, String name, String description,
			List<AdminModule> modules) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.modules = modules;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public List<AdminModule> getModules() {
		return modules;
	}
	public void setModules(List<AdminModule> modules) {
		this.modules = modules;
	}
	@Override
	public String toString() {
		return "PtRole [id=" + id + ", name=" + name + ", description="
				+ description + ", modules=" + modules + ", getId()=" + getId()
				+ ", getName()=" + getName() + ", getDescription()="
				+ getDescription() + ", getModules()=" + getModules()
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
				+ ", toString()=" + super.toString() + "]";
	}
}
